
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Optional;

/**
 * @author 黎志雄
 * 创建于2019-2-18
 *
 * Jakarta EE 课程
 */
@WebServlet(urlPatterns = {"/hello"})
public class HelloServlet extends HttpServlet {

    protected void doGet(HttpServletRequest request,
                         HttpServletResponse response) throws IOException {

       System.out.println("-----------------------------------!!!!!!!!!!--------------------------");
    }
    protected void doPost(HttpServletRequest request,
                         HttpServletResponse response) throws IOException {

        System.out.println("-----------------------------------!!!!!!!!!!--------------------------");
    }
}